package com.mali.permission.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mali.common.dto.Result;
import com.mali.common.web.domain.dto.PageRequestDTO;
import com.mali.permission.domain.po.Permission;

import java.util.Collection;


public interface PermissionService extends IService<Permission> {
    Result<String> bindDefaultRole(Long userId);

    Result<Integer> getRoleCode(Long userId);

    Result<Boolean> updateToUser(Long userId);

    Result<Boolean> updateToAdmin(Long userId);

    Result<Collection<Long>> getCommonUserList(PageRequestDTO pageRequestDTO);

    Result<Collection<Long>> getAdminUserList(PageRequestDTO pageRequestDTO);
}
